﻿using System;
using System.Collections.Generic;

namespace YJKGridTopologyCal.Triangulate.QuadEdge
{
	public class QuadEdgeUtil
	{
		public static IList<QuadEdge> FindEdgesIncidentOnOrigin(QuadEdge start)
		{
			List<QuadEdge> list = new List<QuadEdge>();
			QuadEdge quadEdge = start;
			do
			{
				list.Add(quadEdge);
				quadEdge = quadEdge.ONext;
			}
			while (quadEdge != start);
			return list;
		}
	}
}
